package com.movitech.mobile.cz.base.supplier.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.supplier.entity.SSupplierFormModifyMapping;
import com.movitech.mobile.cz.base.supplier.entity.ext.ExtSSupplierFormModifyMapping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 供方表单字段新旧数据表 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-12
 */
@Component
@Mapper
public interface ExtSSupplierFormModifyMappingMapper extends BaseMapper<ExtSSupplierFormModifyMapping> {

    List<ExtSSupplierFormModifyMapping> getClassRecordIdByType(@Param("actionType")Integer actionType, @Param("suppliersId") String suppliersId);

    void updateBatch(List<SSupplierFormModifyMapping> lstSSupplierFormModifyMapping);

    void insertData(@Param("tableName")String tableName,@Param("insertfieldName")String insertfieldName,@Param("insertfieldData")String insertfieldData);

    void updateData(@Param("tableName")String tableName,@Param("updateData")String insertfieldName,@Param("classRecordId")String insertfieldData);


    void updateDoneFlag(@Param("suppliersId")String suppliersId,@Param("sHistoryCommentId")String sHistoryCommentId);

    void deleteByPrimaryKey(@Param("tableName")String tableName,@Param("id")String id);

}
